/**
 * \* Created with IntelliJ IDEA.
 * \* User: Administrator
 * \* Date: 2022/1/18
 * \* Time: 9:13
 * \* To change this template use File | Settings | File Templates.
 * \* Description:
 * \
 */

public class Test {

    public static void main(String[] args) {
        BinaryTree binaryTree = new BinaryTree();
        TreeNode root = binaryTree.createTree();
        binaryTree.preOrder(root);
        System.out.println();
        binaryTree.inOrder(root);
        System.out.println();
        binaryTree.postOrder(root);
        binaryTree.size1(root);
        binaryTree.size2(root);
        System.out.println();
        System.out.println("是否为完全二叉树:");
        System.out.println(binaryTree.isCompleteTree(root));
    }
}